import request from '@/utils/request.js'

//获取全部素材信息
export const getAllImagesInfo = (params) => {
  return request({
    method: 'GET',
    url: '/mp/v1_0/user/images',
    params
  })
}

//收藏图片素材
export const isCollect = (id, collect) => {
  return request({
    method: 'PUT',
    url: '/mp/v1_0/user/images/' + id,
    data: {
      collect
    }
  })
}

//删除图片素材
export const deleteImage = (id) => {
  return request({
    method: 'DELETE',
    url: '/mp/v1_0/user/images/' + id
  })
}
